package com.studerb.view.tasks.failed;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import org.springframework.beans.factory.annotation.Autowired;

public class FailedTasksTablePane extends JPanel {
    JScrollPane scrollPane;
    @Autowired FailedTasksTable failedTasksTable;

    public void init() {
        failedTasksTable.setFillsViewportHeight(true);
        scrollPane = new JScrollPane(failedTasksTable);
        this.setBorder(BorderFactory.createTitledBorder("Failed Tasks"));
        this.setLayout(new BorderLayout());
        add(scrollPane);
    }
}
